package xyz.scootaloo.oj.leetcode

import cn.hutool.core.lang.Console
import org.junit.Test

/**
 * @author flutterdash@qq.com
 * @since 2021/4/29 17:32
 */
class P461 {

    fun hammingDistance(x: Int, y: Int): Int {
        val res = x xor y
        return Integer.bitCount(res)
    }

    @Test
    fun test0() {
        Console.log(hammingDistance(1, 4))
    }

}
